package com.jimmy.aop;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * @version 1.0
 * @ ClassName MyAdvice
 * <p>通知
 * @ author JIMMY
 * @ Date 2020/10/25 0025 上午 10:44
 */
public class MyAdvice {
    public void funtionOne(){
        System.out.println("这是共性功能1");
    }
    public void functionTwo(){
        System.out.println("这是共性功能2");
    }
    public void around(ProceedingJoinPoint pjp){
        System.out.println("before");
        try {
            pjp.proceed();
        } catch (Throwable throwable) {
            throwable.printStackTrace();
        }
        System.out.println("after");
    }
}
